SET WIDTH 132
SET HEADER ON
SET PRINTBACK LISTING
SET UNICODE YES
GET FILE = 'C:\SPSS\V\JLC-1.SAV'/MAP
DISPLAY VARLIST 
FREQUENCIES VARI =ALL/STAT=ALL

* ANALYSES FOR JLC, DESCRIPTIVE AND PSYCHOMETRIC
WEIGHT BY WEIGHTT4
TITLE WEIGHTT4 SELECTS ONLY 2021 RESPONDENTS
SUBTITLE TABLE 1, POLICE LEGITIMACY
FREQUENCIES VAR= PLEGIT1 TO PLEGIT31  /STAT=ALL
TEMPORARY
RECODE PLEGIT1 TO PLEGIT31 (1=2)(5=4)
FREQUENCIES VAR= PLEGIT1 TO PLEGIT31  /STAT=ALL
TEMPORARY
COMPUTE PLEGITX = MEAN.4(PLEGIT1 TO PLEGIT31)
* THIS IS THE INDEX BEFORE CONVERTING TO 0 TO 1 SCALE
FREQUENCIES VARI = PLEGITX /STAT=ALL

FREQUENCIES VARI = PLEGITX PLEGITC /  /STAT=ALL
* PSYCHOMETRICS REPORTED IN APPENDIX B
RELIABILITY VARI=         
  PLEGIT1 TO PLEGIT31                                                      
  /SCALE(NRLAW)= 
  PLEGIT1 TO PLEGIT31                                                      
  /STAT=ALL/SUMM=ALL
FACTOR VARI=
  PLEGIT1 TO PLEGIT31   /PRINT=ALL/
   FORMAT=SORT/CRIT=ITERATE(300) FACTORS (1) /EXTRA=PAF
  /SAVE=REG(ALL FPLEGIT)
VAR LABELS FPLEGIT1 Legitimacy of the Police
* CORRELATION OF FACTOR SCORE AND INDEX
CORRELATIONS VARI = FPLEGIT1 PLEGITX /STAT=ALL
COUNT N543 =
    PLEGITX PLEGITC
  PEXPERIENCE VEXPER2 IDX LFATE 
  BLMKNOW BLM CONBLM
    RACISM
  PARTYID POLVIEWS 
  GENDER 
  AGE7 EDUC5 INCOME9 SOUTH METRO INTERNET HOMEOWND
  ATTEND BAGAIN RELIGX
  OPLEADD
   (MISSING)
VAR LABELS N543 FILTER FOR N = 543
FREQUENCIES VARI = N543

SUBTITLE FIGURE 1
VAR LABELS PLEGITX Mean Police Legitimacy, High=Legitimacy
TEMPORARY
SELECT IF (N543 EQ 0)
GRAPH
  /TEMPLATE =     'C:\wS2000\JLC-F1.SGT'
  /BAR (SIMPLE)= MEAN ( PLEGITX ) BY PEXPERIENCEORIGINAL
  / INTERVAL CI (95)
*NOTES TO FIGURE 1
TEMPORARY
SELECT IF (N543 EQ 0)
MEANS TABLES= PLEGITX BY PEXPERIENCEORIGINAL /STAT=ALL
* NOTE: TABLE 2 AND TABLE C.1 ARE CALCULATED BY STATA
* FOOTNOTE 16
MEANS TABLES = PLEGITX BY CONBLMORIGINAL/STAT=ALL
* FOOTNOTE 18
TEMPORARY
RECODE LFATEORIGINAL (4=4)(1,2,3=3)
MEANS TABLES = PLEGITX BY LFATEORIGINAL/STAT=ALL
* NOTE: F2 IS PRODUCED BY STATA
* PSYCHOMETRICS ON INGROUP ATTACHMENTS
FREQUENCIES VARI =   IDENT42 IDENT62 IDIMP2 /STAT=ALL
FREQUENCIES VARI = IDIMPORIGINAL LFATEORIGINAL/STAT=ALL

RELIABILITY VARI=                                                               
  IDENT42 IDENT62 IDIMP2
  /SCALE(LEGIT)= 
  IDENT42 IDENT62 IDIMP2
  /STAT=ALL/SUMM=ALL
FACTOR VARI=
  IDENT42 IDENT62 IDIMP2
   /PRINT=ALL/
   FORMAT=SORT/CRIT=ITERATE(500) /EXTRA=PAF /ROTATE = OBLIMIN
*  /SAVE=REG(ALL FID)
*MAXIMUM LIKELIHOOD EXTRACTION
FACTOR VARI =  
  IDIMP2 IDENT42 IDENT62
   /PRINT = ALL/
   FORMAT = SORT/CRIT = ITERATE (500) /EXTRA = ML/ROTA = OBLIMIN
CROSSTABS TABLES = LFATEORIGINAL BY IDIMPORIGINAL
         /cells=count column ROW TOTAL
 /stat=    chisq phi cc lambda uc btau ctau gamma d eta corr risk
TEMPORARY
RECODE LFATEORIGINAL (1=2)
CROSSTABS TABLES = LFATEORIGINAL BY IDIMPORIGINAL
         /cells=count column ROW TOTAL
 /stat=    chisq phi cc lambda uc btau ctau gamma d eta corr risk
CORRELATIONS VARI = PEXPERIENCE VEXPER2/STAT=ALL
FREQUENCIES VAR=DISCRIMWHITES WHITEPRIV /STAT=ALL
CORRELATIONS VAR=DISCRIMWHITES WHITEPRIV /STAT=ALL
TEMPORARY
RECODE DISCRIMWHITES WHITEPRIV (0=.25)(1=.75)
FREQUENCIES VAR=DISCRIMWHITES WHITEPRIV /STAT=ALL
TITLE RELIGIOSITY
MISSING VALUES NCW1 NCW2 NCW6(98)
FREQUENCIES VARI = NCW1 NCW2 NCW6/STAT=ALL 
RELIABILITY VARI=         
  NCW1 NCW2 NCW6
  /SCALE(NRLAW)= 
  NCW1 NCW2 NCW6
  /STAT=ALL/SUMM=ALL
FACTOR VARI=
  NCW1 NCW2 NCW6 /PRINT=ALL/
   FORMAT=SORT/CRIT=ITERATE(300) FACTORS (1) /EXTRA=PAF
*APPENDIX D, FIGURE D.1
VAR LABELS PLEGITC Average Number of Pro-Legitimacy Responses to Seven Items
FREQUENCIES VARI =  POLVIEWSORIGINAL PARTYIDORIGINAL /STAT=ALL
TEMPORARY
VALUE LABELS POLVIEWSORIGINAL
  (1)"Extremely Liberal (32)"
  (2)"Liberal (124)"
  (3)"Slightly Liberal (64)"
  (4)"Moderate (253)"
  (5)"Slightly Conservative(27)"
  (6)"Conservative (33)"
  (7)"Extremely Conservative (9)"
VALUE LABELS PARTYIDORIGINAL
 (1)"Strong Democrat (233)"
 (2)"Democrat (182)"
 (3)"Lean Democratic (20)"
 (4)"Independent, Don't Lean (39)"
 (5)"Lean Republican (52)"
 (6)"Republican (14)"
 (7)"Strong Republican (4)"
SELECT IF (N543 EQ 0)
GRAPH
  /TEMPLATE =     'C:\wS2000\JLC POLVIEWS.SGT'
  /BAR (SIMPLE)= MEAN ( PLEGITC ) BY POLVIEWSORIGINAL
  / INTERVAL CI (95)

TEMPORARY
SELECT IF (N543 EQ 0)
VALUE LABELS POLVIEWSORIGINAL
  (1)"Extremely Liberal (32)"
  (2)"Liberal (124)"
  (3)"Slightly Liberal (64)"
  (4)"Moderate (253)"
  (5)"Slightly Conservative(27)"
  (6)"Conservative (33)"
  (7)"Extremely Conservative (9)"
VALUE LABELS PARTYIDORIGINAL
 (1)"Strong Democrat (233)"
 (2)"Democrat (182)"
 (3)"Lean Democratic (20)"
 (4)"Independent, Don't Lean (39)"
 (5)"Lean Republican (52)"
 (6)"Republican (14)"
 (7)"Strong Republican (4)"
GRAPH
  /TEMPLATE =     'C:\wS2000\JLC PARTYID.SGT'
  /BAR (SIMPLE)= MEAN ( PLEGITC ) BY PARTYIDORIGINAL 
  / INTERVAL CI (95)
TEMPORARY
SELECT IF (N543 EQ 0)
MEANS TABLES = PLEGITC PLEGITX BY POLVIEWSORIGINAL PARTYIDORIGINAL /STAT=ALL
TEMPORARY
SELECT IF (N543 EQ 0)
CORRELATIONS VARI = POLVIEWSORIGINAL PARTYIDORIGINAL/STAT=ALL
CONPUTE
